﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace Ruandao.Foundation.Service
{
    [Serializable]
    public class TagServiceExcepiton
        : Exception, ISerializable
    {
        /// <summary>
        /// 默认构造。
        /// </summary>
        public TagServiceExcepiton()
            : base()
        { }

        /// <summary>
        /// 构造指定消息的异常。
        /// </summary>
        /// <param name="message">异常消息。</param>
        public TagServiceExcepiton(string message)
            : base(message)
        { }

        /// <summary>
        /// 构造异常，指定异常信息和引发该异常的内部异常。
        /// </summary>
        /// <param name="message">异常信息。</param>
        /// <param name="inner">内部异常。</param>
        public TagServiceExcepiton(string message, Exception inner)
            : base(message, inner)
        { }

        private TagServiceExcepiton(SerializationInfo info, StreamingContext context)
            : base(info, context)
        { }

        void ISerializable.GetObjectData(SerializationInfo info, StreamingContext context)
        {
            base.GetObjectData(info, context);
        }
    }
}
